﻿using SqlSugar;

namespace ProjectScheduling_web.model
{
    /// <summary>
    /// 合同管理
    /// </summary>
    [SugarTable("Contract")]
    public class Contract : BClass
    {
        /// <summary>
        /// 合同类型ID
        /// </summary>
        public int TypeId { get; set; }
        /// <summary>
        /// 合同类型名称
        /// </summary>
        public string? TypeName { get; set; }
        /// <summary>
        /// 合同编号
        /// </summary>
        public string? Code { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string? Desc { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string? ProjectName { get; set; }
        /// <summary>
        /// 客户ID
        /// </summary>
        public int CustomerId { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string? CustomerName { get; set; }
        /// <summary>
        /// 合同金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 部门ID
        /// </summary>
        public int OrgId { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string? OrgName { get; set; }
        /// <summary>
        /// 销售ID
        /// </summary>
        public int SalerId { get; set; }
        /// <summary>
        /// 销售名称
        /// </summary>
        public string? SalerName { get; set; }
        /// <summary>
        /// 签订时间
        /// </summary>
        public DateTime SignTime { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 付款条件
        /// </summary>
        public string? PayCondition { get; set; }
        /// <summary>
        /// 操作人ID
        /// </summary>
        public int CreaterId { get; set; }
        /// <summary>
        /// 操作人名称
        /// </summary>
        public string? CreaterName { get; set; }
    }
}
